package com.ax.base.drugproducer.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class BaseDrug {
    /**
     * 药品ID
     */
    private Long drugId;

    /**
     * 药品名称
     */
    private String drugName;

    /**
     * 药品别称
     */
    private String drugAlias;

    /**
     * 规格
     */
    private String spec;

    /**
     * 拼音首字母
     */
    private String firstLetter;

    /**
     * 所属分类代码
     */
    private String drugClassCode;

    /**
     * 所属分类名称
     */
    private String drugClassName;

    /**
     * 是否含麻药品(0:否；1是)
     */
    private Integer isHemp;

    /**
     * 成分
     */
    private String component;

    /**
     * 性状
     */
    private String properties;

    /**
     * 功能主治
     */
    private String functions;

    /**
     * 禁忌
     */
    private String taboo;

    /**
     * 注意事项
     */
    private String attention;

    /**
     * 生产厂家ID
     */
    private Long producerId;

    /**
     * 生产厂家名称
     */
    private String producerName;

    /**
     * 用法用量
     */
    private String usages;

    /**
     * 不良反应
     */
    private String adverseReaction;

    /**
     * 贮藏
     */
    private String storages;

    /**
     * 有效期
     */
    private String validityTerm;

    /**
     * 条码
     */
    private String barCode;

    /**
     * 批准文号
     */
    private String approvalNumber;

    /**
     * 说明书
     */
    private String instructions;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 修改时间
     */
    private Date updateDate;

    /**
     * 状态(1：有效；0：注销)
     */
    private Integer flag;
    
    /**
     * 药物相互作用
     */
    private String drugInteraction;
    
    /**
     * 包装
     */
    private String packing;
    
    /**
     * 价格
     */
    private double price;
    
    /**
     * 是否处方药
     */
    private Integer isRecipe;
    
    
    public Integer getIsRecipe() {
		return isRecipe;
	}

	public void setIsRecipe(Integer isRecipe) {
		this.isRecipe = isRecipe;
	}

	public String getDrugInteraction() {
		return drugInteraction;
	}

	public void setDrugInteraction(String drugInteraction) {
		this.drugInteraction = drugInteraction;
	}

	public String getPacking() {
		return packing;
	}

	public void setPacking(String packing) {
		this.packing = packing;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public BaseDrug(Long drugId, String drugName, String drugAlias, String spec, String firstLetter, String drugClassCode, String drugClassName, Integer isHemp, String component, String properties, String functions, String taboo, String attention, Long producerId, String producerName, String usages, String adverseReaction, String storages, String validityTerm, String barCode, String approvalNumber, String instructions, String remarks, Date createDate, Date updateDate, Integer flag) {
        this.drugId = drugId;
        this.drugName = drugName;
        this.drugAlias = drugAlias;
        this.spec = spec;
        this.firstLetter = firstLetter;
        this.drugClassCode = drugClassCode;
        this.drugClassName = drugClassName;
        this.isHemp = isHemp;
        this.component = component;
        this.properties = properties;
        this.functions = functions;
        this.taboo = taboo;
        this.attention = attention;
        this.producerId = producerId;
        this.producerName = producerName;
        this.usages = usages;
        this.adverseReaction = adverseReaction;
        this.storages = storages;
        this.validityTerm = validityTerm;
        this.barCode = barCode;
        this.approvalNumber = approvalNumber;
        this.instructions = instructions;
        this.remarks = remarks;
        this.createDate = createDate;
        this.updateDate = updateDate;
        this.flag = flag;
    }

    public BaseDrug() {
        super();
    }

    public Long getDrugId() {
        return drugId;
    }

    public void setDrugId(Long drugId) {
        this.drugId = drugId;
    }

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName == null ? null : drugName.trim();
    }

    public String getDrugAlias() {
        return drugAlias;
    }

    public void setDrugAlias(String drugAlias) {
        this.drugAlias = drugAlias == null ? null : drugAlias.trim();
    }

    public String getSpec() {
        return spec;
    }

    public void setSpec(String spec) {
        this.spec = spec == null ? null : spec.trim();
    }

    public String getFirstLetter() {
        return firstLetter;
    }

    public void setFirstLetter(String firstLetter) {
        this.firstLetter = firstLetter == null ? null : firstLetter.trim();
    }

    public String getDrugClassCode() {
        return drugClassCode;
    }

    public void setDrugClassCode(String drugClassCode) {
        this.drugClassCode = drugClassCode == null ? null : drugClassCode.trim();
    }

    public String getDrugClassName() {
        return drugClassName;
    }

    public void setDrugClassName(String drugClassName) {
        this.drugClassName = drugClassName == null ? null : drugClassName.trim();
    }

    public Integer getIsHemp() {
        return isHemp;
    }

    public void setIsHemp(Integer isHemp) {
        this.isHemp = isHemp;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component == null ? null : component.trim();
    }

    public String getProperties() {
        return properties;
    }

    public void setProperties(String properties) {
        this.properties = properties == null ? null : properties.trim();
    }

    public String getFunctions() {
        return functions;
    }

    public void setFunctions(String functions) {
        this.functions = functions == null ? null : functions.trim();
    }

    public String getTaboo() {
        return taboo;
    }

    public void setTaboo(String taboo) {
        this.taboo = taboo == null ? null : taboo.trim();
    }

    public String getAttention() {
        return attention;
    }

    public void setAttention(String attention) {
        this.attention = attention == null ? null : attention.trim();
    }

    public Long getProducerId() {
        return producerId;
    }

    public void setProducerId(Long producerId) {
        this.producerId = producerId;
    }

    public String getProducerName() {
        return producerName;
    }

    public void setProducerName(String producerName) {
        this.producerName = producerName == null ? null : producerName.trim();
    }

    public String getUsages() {
        return usages;
    }

    public void setUsages(String usages) {
        this.usages = usages == null ? null : usages.trim();
    }

    public String getAdverseReaction() {
        return adverseReaction;
    }

    public void setAdverseReaction(String adverseReaction) {
        this.adverseReaction = adverseReaction == null ? null : adverseReaction.trim();
    }

    public String getStorages() {
        return storages;
    }

    public void setStorages(String storages) {
        this.storages = storages == null ? null : storages.trim();
    }

    public String getValidityTerm() {
        return validityTerm;
    }

    public void setValidityTerm(String validityTerm) {
        this.validityTerm = validityTerm == null ? null : validityTerm.trim();
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode == null ? null : barCode.trim();
    }

    public String getApprovalNumber() {
        return approvalNumber;
    }

    public void setApprovalNumber(String approvalNumber) {
        this.approvalNumber = approvalNumber == null ? null : approvalNumber.trim();
    }

    public String getInstructions() {
        return instructions;
    }

    public void setInstructions(String instructions) {
        this.instructions = instructions == null ? null : instructions.trim();
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
    }
}